import { useParams, Link } from 'react-router-dom';
import { StarIcon, CheckIcon } from 'lucide-react';
import { usePageTitle } from '../hooks/usePageTitle';
import { ImageWithLoader } from '../components/ImageWithLoader';

export function ProductDetail() {
  const {
    id
  } = useParams<{
    id: string;
  }>();
  // Comprehensive mock data for products across all categories
  const allProducts = {
    // Kitchen Products
    'kitchen-1': {
      id: 'kitchen-1',
      name: 'Samsung Bespoke 4-Door Refrigerator',
      image: 'https://images.unsplash.com/photo-1584568694244-14fbdf83bd30?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1974&q=80',
      category: 'Kitchen',
      subcategory: 'Refrigerators',
      price: '$2,999',
      description: 'The Samsung Bespoke 4-Door Refrigerator combines customizable design with advanced food preservation technology. With interchangeable door panels, flexible temperature zones, and AI-powered energy management, this refrigerator adapts to both your aesthetic preferences and food storage needs.',
      shortDescription: 'Customizable panels, flexible temperature zones, and AI-powered energy management.',
      features: ['Customizable door panels in various colors and finishes', 'Flex Zone drawer with adjustable temperature settings', 'Triple cooling system for optimal humidity and temperature control', 'Family Hub™ touchscreen with integrated apps and food management', 'SmartThings integration for remote monitoring and control', 'Energy Star certified with AI energy optimization'],
      specifications: {
        Capacity: '29 cu. ft.',
        Dimensions: '36" W x 70" H x 34" D',
        'Energy Consumption': '728 kWh/year',
        'Ice Maker': 'Dual (craft ice and regular)',
        'Water Filtration': 'Premium built-in system',
        Warranty: '10-year compressor, 5-year parts & labor'
      },
      reviews: [{
        rating: 5,
        title: 'Game-changing refrigerator',
        content: 'The customization options and smart features have transformed our kitchen experience. The Family Hub is actually useful, not just a gimmick.',
        author: 'Michael T.',
        date: '2 months ago'
      }, {
        rating: 4,
        title: 'Beautiful design, minor software issues',
        content: 'Love the look and functionality, but the app occasionally disconnects. Samsung support has been helpful with troubleshooting.',
        author: 'Sarah J.',
        date: '3 months ago'
      }],
      relatedProducts: ['kitchen-3', 'kitchen-5', 'kitchen-8']
    },
    'kitchen-2': {
      id: 'kitchen-2',
      name: 'LG Smart Dishwasher with QuadWash',
      image: 'https://images.unsplash.com/photo-1584269600464-37b1b58a9fe7?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2071&q=80',
      category: 'Kitchen',
      subcategory: 'Dishwashers',
      price: '$1,199',
      description: 'The LG Smart Dishwasher with QuadWash technology delivers a powerful cleaning experience through multi-motion spray arms and high-pressure jets. TrueSteam technology reduces water spots by up to 60%, while the smart diagnosis system helps troubleshoot issues before they become problems.',
      shortDescription: 'Advanced cleaning technology with smart diagnostics and voice control.',
      features: ['QuadWash™ multi-motion spray arms for thorough cleaning', 'TrueSteam® technology for spotless dishes', 'EasyRack™ Plus system with adjustable tines and cup racks', 'SmartThinQ® technology for remote monitoring and control', 'Voice control compatibility with Google Assistant and Amazon Alexa', 'LoDecibel™ operation at just 42dB'],
      specifications: {
        Capacity: '15 place settings',
        Dimensions: '23.75" W x 33.6" H x 24.6" D',
        'Energy Consumption': '258 kWh/year',
        'Water Usage': '2.9 gallons per cycle',
        Cycles: '9 wash cycles including TurboSteam',
        Warranty: '1-year parts & labor, 5-year sealed system'
      },
      reviews: [{
        rating: 5,
        title: 'Incredibly quiet and effective',
        content: "We can barely tell when it's running, and dishes come out spotless every time. The adjustable racks are perfect for our odd-sized items.",
        author: 'Jennifer L.',
        date: '1 month ago'
      }, {
        rating: 4,
        title: 'Great cleaning, app needs work',
        content: 'The dishwasher itself is fantastic, but the app is somewhat limited in functionality. Would love to see more features added in updates.',
        author: 'David W.',
        date: '2 months ago'
      }],
      relatedProducts: ['kitchen-9', 'kitchen-1', 'kitchen-6']
    },
    'kitchen-3': {
      id: 'kitchen-3',
      name: 'Bosch Series 8 Smart Oven',
      image: 'https://images.unsplash.com/photo-1631679706909-1844bbd07221?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1992&q=80',
      category: 'Kitchen',
      subcategory: 'Ovens',
      price: '$2,499',
      description: 'The Bosch Series 8 Smart Oven represents the pinnacle of home cooking technology, offering professional-grade results with consumer-friendly controls. With PerfectBake and PerfectRoast sensors, 4D hot air convection, and Home Connect functionality, this oven delivers precision cooking for everything from delicate pastries to Sunday roasts.',
      shortDescription: 'Precision temperature control and intuitive app for perfect results.',
      features: ['PerfectBake sensor for optimal baking results', 'PerfectRoast meat probe for precise cooking of meats', '4D hot air convection for even heat distribution on all levels', 'Home Connect for remote monitoring and control', '30 automatic cooking programs for effortless meal preparation', 'Pyrolytic self-cleaning function'],
      specifications: {
        Capacity: '4.6 cu. ft.',
        Dimensions: '23.5" W x 23.5" H x 23.8" D',
        Power: '3,600 watts',
        'Temperature Range': '85°F - 550°F',
        'Cooking Modes': '15 heating modes including pizza setting',
        Warranty: '2-year parts & labor'
      },
      reviews: [{
        rating: 5,
        title: 'Professional quality for home use',
        content: 'As someone who bakes extensively, this oven has transformed my results. The temperature accuracy is remarkable, and the convection is perfectly even.',
        author: 'Emma C.',
        date: '3 weeks ago'
      }, {
        rating: 4,
        title: 'Excellent performance, steep learning curve',
        content: 'The results are outstanding once you learn the system, but there is definitely a learning curve to mastering all the features and settings.',
        author: 'Robert M.',
        date: '2 months ago'
      }],
      relatedProducts: ['kitchen-5', 'kitchen-1', 'kitchen-8']
    },
    'kitchen-4': {
      id: 'kitchen-4',
      name: 'KitchenAid Stand Mixer Professional',
      image: 'https://images.unsplash.com/photo-1594282486552-05a3b6fbfdb5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1976&q=80',
      category: 'Kitchen',
      subcategory: 'Small Appliances',
      price: '$449',
      description: 'The KitchenAid Professional Stand Mixer is the gold standard for home baking enthusiasts and professional chefs alike. With a powerful motor, 10 speed settings, and a bowl-lift design, this mixer can handle everything from delicate meringues to heavy bread doughs with ease.',
      shortDescription: 'Powerful motor with multiple attachments for versatile food preparation.',
      features: ['575-watt motor with 10 speed settings', 'Professional bowl-lift design for stability when mixing heavy ingredients', '6-quart stainless steel bowl with comfortable handle', 'Includes flat beater, wire whip, and dough hook attachments', 'Power hub for additional attachments (sold separately)', 'Planetary mixing action for thorough ingredient incorporation'],
      specifications: {
        Capacity: '6 quarts',
        Dimensions: '11.3" W x 16.5" H x 14.6" D',
        Weight: '29 pounds',
        Material: 'Die-cast metal construction',
        'Available Colors': '10+ professional colors',
        Warranty: '1-year full warranty'
      },
      reviews: [{
        rating: 5,
        title: 'Worth every penny',
        content: "I've had mine for over 10 years and it still works like new. Has handled everything from weekly bread making to holiday cookie marathons without complaint.",
        author: 'Thomas K.',
        date: '1 month ago'
      }, {
        rating: 5,
        title: 'Professional quality for home use',
        content: 'The power and capacity are perfect for large batches. I appreciate that I can add specialized attachments as needed.',
        author: 'Lisa R.',
        date: '3 months ago'
      }],
      relatedProducts: ['kitchen-5', 'kitchen-6', 'kitchen-3']
    },
    'kitchen-5': {
      id: 'kitchen-5',
      name: 'Breville Oracle Touch Espresso Machine',
      image: 'https://images.unsplash.com/photo-1576092762791-dd9e2220abd1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80',
      category: 'Kitchen',
      subcategory: 'Coffee Makers',
      price: '$2,499',
      description: 'The Breville Oracle Touch combines the convenience of an automatic coffee machine with the quality and customization of manual espresso preparation. With a touchscreen interface, automatic grinding, dosing, tamping, and milk texturing, this machine delivers barista-quality coffee with minimal effort.',
      shortDescription: 'Automated touch screen operation with integrated grinder and milk frother.',
      features: ['Touchscreen operation with customizable drink settings', 'Automatic grinding, dosing, tamping, and milk texturing', 'Dual stainless steel boilers for simultaneous brewing and steaming', 'PID temperature control for precise extraction', 'Programmable shot duration and temperature', 'Self-cleaning steam wand with automatic microfoam milk texturing'],
      specifications: {
        'Water Tank': '84 oz',
        'Bean Hopper': '8 oz',
        Dimensions: '14.7" W x 14.5" H x 17.8" D',
        Power: '1800 watts',
        'Pump Pressure': '15 bar Italian pump',
        Warranty: '2-year limited warranty'
      },
      reviews: [{
        rating: 5,
        title: 'Cafe-quality coffee at home',
        content: "After six months with this machine, I haven't been to a coffee shop once. The consistency and quality are outstanding, and the touch interface makes it accessible for everyone in the household.",
        author: 'James T.',
        date: '2 months ago'
      }, {
        rating: 4,
        title: 'Amazing results, significant investment',
        content: 'The coffee is truly exceptional, but this is definitely an investment appliance. The maintenance is straightforward but requires diligence.',
        author: 'Sophia L.',
        date: '1 month ago'
      }],
      relatedProducts: ['kitchen-4', 'kitchen-3', 'kitchen-6']
    },
    'kitchen-6': {
      id: 'kitchen-6',
      name: 'Miele Complete C3 Vacuum',
      image: 'https://images.unsplash.com/photo-1558317374-067fb5f30001?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80',
      category: 'Kitchen',
      subcategory: 'Small Appliances',
      price: '$899',
      description: 'The Miele Complete C3 is a premium canister vacuum that combines powerful suction with sophisticated filtration for exceptional cleaning performance. Designed for homes with varied flooring types, this vacuum features a sealed system with HEPA filtration that captures 99.9% of dust and allergens.',
      shortDescription: 'Powerful suction with HEPA filtration and quiet operation.',
      features: ['Vortex Motor System for powerful yet efficient cleaning', 'HEPA AirClean filter that captures 99.9% of dust and allergens', 'Silence System Plus for quiet operation', 'Comfort Clean self-cleaning filtration', '36-foot operating radius with automatic cord rewind', 'Versatile attachments for various cleaning tasks'],
      specifications: {
        'Suction Power': '1200 watts',
        Filtration: 'HEPA AirClean filter',
        'Dust Capacity': '4.5 liters',
        'Noise Level': '64 dB',
        Weight: '12 pounds',
        Warranty: '7-year motor warranty, 1-year parts & labor'
      },
      reviews: [{
        rating: 5,
        title: 'Worth every penny',
        content: "After going through multiple vacuums that lasted 1-2 years each, this Miele is a revelation. The suction power is incredible, and it's so quiet I can vacuum while others are sleeping.",
        author: 'Catherine M.',
        date: '3 months ago'
      }, {
        rating: 5,
        title: 'Perfect for allergies',
        content: "The HEPA filtration has made a noticeable difference in our home's air quality. My allergies have improved significantly since we started using this vacuum.",
        author: 'Daniel P.',
        date: '1 month ago'
      }],
      relatedProducts: ['kitchen-4', 'kitchen-5', 'kitchen-9']
    },
    'kitchen-7': {
      id: 'kitchen-7',
      name: 'Sub-Zero Pro 48 Refrigerator',
      image: 'https://images.unsplash.com/photo-1556911220-bff31c812dba?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2068&q=80',
      category: 'Kitchen',
      subcategory: 'Refrigerators',
      price: '$11,999',
      description: 'The Sub-Zero Pro 48 is the ultimate refrigeration solution for serious home chefs and entertainers. This professional-grade side-by-side refrigerator/freezer features dual refrigeration systems that maintain optimal humidity levels and temperatures, while the air purification system inspired by NASA technology keeps food fresher longer.',
      shortDescription: 'Professional-grade cooling with dual refrigeration systems and air purification.',
      features: ['Dual refrigeration systems for separate cooling of refrigerator and freezer', 'NASA-inspired air purification system that scrubs air of ethylene gas, bacteria, mold, and viruses', 'Microprocessor control for maintaining temperature within 1°F of setpoint', 'Vacuum-sealed doors with magnetic gaskets', 'Adjustable glass shelving and door bins', 'LED lighting throughout interior'],
      specifications: {
        Capacity: '30.1 cu. ft. total (18.4 refrigerator, 11.7 freezer)',
        Dimensions: '48" W x 84" H x 24" D',
        'Energy Consumption': '945 kWh/year',
        'Temperature Range': 'Refrigerator: 34°F to 45°F, Freezer: -5°F to 5°F',
        'Water Filtration': 'Advanced carbon filtration system',
        Warranty: '2-year full parts & labor, 5-year sealed system'
      },
      reviews: [{
        rating: 5,
        title: 'The Ferrari of refrigerators',
        content: 'This is undoubtedly an investment, but the difference in food preservation is remarkable. Produce stays fresh twice as long as our previous refrigerator.',
        author: 'Alexander J.',
        date: '6 months ago'
      }, {
        rating: 4,
        title: 'Exceptional quality with premium price',
        content: 'The build quality and performance are unmatched, but be prepared for the significant energy usage and maintenance costs.',
        author: 'Victoria S.',
        date: '3 months ago'
      }],
      relatedProducts: ['kitchen-1', 'kitchen-8', 'kitchen-2']
    },
    'kitchen-8': {
      id: 'kitchen-8',
      name: 'Wolf Dual Fuel Range',
      image: 'https://images.unsplash.com/photo-1586208958839-06c17cacdf08?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80',
      category: 'Kitchen',
      subcategory: 'Ovens',
      price: '$8,499',
      description: 'The Wolf Dual Fuel Range combines the precision of a gas cooktop with the consistent heat of an electric dual convection oven. With iconic red knobs and professional styling, this range delivers restaurant-quality cooking performance with features designed specifically for the serious home chef.',
      shortDescription: 'Gas cooktop with electric dual convection oven for precise cooking control.',
      features: ['Dual-stacked sealed gas burners with precise control from melt to high sear', 'Dual convection electric oven with 10 cooking modes', 'Cobalt blue porcelain oven interior', 'Temperature probe for precise cooking of meats', 'Self-cleaning mode with delayed start option', 'Signature red control knobs and stainless steel construction'],
      specifications: {
        Cooktop: '6 dual-stacked burners (9,200 to 20,000 BTU)',
        'Oven Capacity': '5.4 cu. ft.',
        Dimensions: '36" W x 36.5" H x 29.5" D',
        Power: '240V/60 Hz, 50 amp electrical supply',
        'Temperature Range': 'Oven: 170°F to 550°F',
        Warranty: '2-year full parts & labor, 5-year limited parts'
      },
      reviews: [{
        rating: 5,
        title: 'Professional performance at home',
        content: "After cooking on this range for a year, I can't imagine going back to a standard model. The temperature control is exceptional, and the oven bakes more evenly than any I've used.",
        author: 'Marcus L.',
        date: '4 months ago'
      }, {
        rating: 5,
        title: 'Built to last',
        content: 'The build quality is impressive - this range feels like it will last decades. The dual fuel design gives you the best of both worlds for cooking.',
        author: 'Olivia T.',
        date: '2 months ago'
      }],
      relatedProducts: ['kitchen-3', 'kitchen-7', 'kitchen-9']
    },
    'kitchen-9': {
      id: 'kitchen-9',
      name: 'Thermador Dishwasher Star Glow',
      image: 'https://images.unsplash.com/photo-1585771724684-38269d6639fd?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80',
      category: 'Kitchen',
      subcategory: 'Dishwashers',
      price: '$2,299',
      description: 'The Thermador Star Glow Dishwasher combines innovative technology with elegant design for superior cleaning performance and convenience. With a customizable interior, ultra-quiet operation, and StarSpeed cycle that cleans and dries dishes in just 20 minutes, this dishwasher sets a new standard for luxury appliances.',
      shortDescription: 'Ultra-quiet operation with customizable interior and WiFi connectivity.',
      features: ['StarSpeed™ 20-minute wash and dry cycle', 'Star Glow interior lighting with customizable color options', 'Flexible MyWay™ rack with dedicated spaces for oversized items', 'PowerBeam™ floor projection indicates cycle status', 'Home Connect™ for remote monitoring and control', 'Ultra-quiet 42 dB operation'],
      specifications: {
        Capacity: '16 place settings',
        Dimensions: '23.5" W x 33.8" H x 24" D',
        'Energy Consumption': '269 kWh/year',
        'Water Usage': '3.5 gallons per cycle',
        Cycles: '8 wash cycles including StarSpeed',
        Warranty: '2-year full warranty, 5-year limited parts'
      },
      reviews: [{
        rating: 5,
        title: 'Exceptional cleaning performance',
        content: 'The cleaning power is remarkable - even baked-on food comes off without pre-rinsing. The Star Glow lighting is more than just aesthetics; it makes loading and unloading easier.',
        author: 'Rachel K.',
        date: '1 month ago'
      }, {
        rating: 4,
        title: 'Impressive but expensive',
        content: 'This dishwasher performs beautifully and looks stunning. The 20-minute cycle is perfect for quick clean-ups. Only drawback is the premium price.',
        author: 'Nathan P.',
        date: '3 months ago'
      }],
      relatedProducts: ['kitchen-2', 'kitchen-1', 'kitchen-7']
    },
    // Laundry Products
    'laundry-1': {
      id: 'laundry-1',
      name: 'Miele TwinDos Washing Machine',
      image: 'https://images.unsplash.com/photo-1610557892470-55d9e80c0bce?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2069&q=80',
      category: 'Laundry',
      subcategory: 'Washing Machines',
      price: '$1,799',
      description: 'The Miele TwinDos washing machine represents the pinnacle of laundry technology, featuring an automatic dispensing system that precisely releases detergent based on load size, fabric type, and soil level. With specialized wash programs and intelligent fabric detection, this machine delivers impeccable cleaning while extending the life of your garments.',
      shortDescription: 'Precision dosing system and intelligent fabric detection for perfect cleaning.',
      features: ['TwinDos automatic two-phase detergent dispensing system', 'PowerWash 2.0 for thorough cleaning of heavily soiled items', 'CapDosing for specialized fabric care (woolens, silks, outdoor wear)', 'QuickIntenseWash cleans thoroughly in under 1 hour', 'WiFiConn@ct for smart control via Miele@mobile app', 'Honeycomb drum design for gentle fabric care'],
      specifications: {
        Capacity: '2.26 cu. ft.',
        Dimensions: '23.5" W x 33.5" H x 25.3" D',
        'Energy Consumption': '120 kWh/year',
        'Water Consumption': '10.1 gallons per cycle (average)',
        'Spin Speed': 'Up to 1,600 RPM',
        Warranty: '1-year full warranty, 10-year drum & motor warranty'
      },
      reviews: [{
        rating: 5,
        title: 'Worth every penny',
        content: 'After years of mediocre washing machines, this Miele is a revelation. Clothes come out cleaner, last longer, and the automatic dispensing system is incredibly convenient.',
        author: 'Elizabeth H.',
        date: '2 months ago'
      }, {
        rating: 5,
        title: 'Exceptional cleaning performance',
        content: 'The stain removal capabilities are remarkable. The machine is incredibly quiet, and the app connectivity is actually useful rather than gimmicky.',
        author: 'Richard M.',
        date: '3 months ago'
      }],
      relatedProducts: ['laundry-2', 'laundry-3', 'laundry-7']
    },
    'laundry-2': {
      id: 'laundry-2',
      name: 'Samsung Smart Washer-Dryer Combo',
      image: 'https://images.unsplash.com/photo-1604335399105-a0c585fd81a1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80',
      category: 'Laundry',
      subcategory: 'Washer-Dryers',
      price: '$1,499',
      description: 'The Samsung Smart Washer-Dryer Combo offers a space-saving solution for homes with limited laundry areas. This all-in-one unit washes and dries in the same drum, featuring AI-powered fabric detection that optimizes wash cycles and temperature. With ventless heat pump drying technology, this machine delivers energy-efficient performance without requiring external venting.',
      shortDescription: 'Space-saving design with AI fabric detection and remote monitoring capabilities.',
      features: ['AI Control automatically selects optimal wash settings', 'Heat pump drying technology for energy-efficient drying', 'SuperSpeed cycle washes and dries in under 3 hours', 'SmartThings app connectivity for remote monitoring', 'Steam sanitizing cycle removes allergens and bacteria', 'Self-cleaning technology prevents mold and odors'],
      specifications: {
        Capacity: '2.8 cu. ft.',
        Dimensions: '27" W x 33.5" H x 29.8" D',
        'Energy Consumption': '180 kWh/year',
        'Water Consumption': '7.4 gallons per cycle (average)',
        'Spin Speed': 'Up to 1,400 RPM',
        Warranty: '1-year parts & labor, 3-year control board, 10-year motor'
      },
      reviews: [{
        rating: 4,
        title: 'Perfect for small spaces',
        content: 'This combo unit has transformed our apartment living. While it takes longer than separate machines, the convenience of having both functions in one appliance is worth it.',
        author: 'Michelle P.',
        date: '1 month ago'
      }, {
        rating: 4,
        title: 'Innovative but with limitations',
        content: 'The technology is impressive and it works well for daily use. Drying times are longer than a standard dryer, but the space savings and convenience outweigh this drawback for our situation.',
        author: 'Jason T.',
        date: '3 months ago'
      }],
      relatedProducts: ['laundry-1', 'laundry-3', 'laundry-4']
    },
    'laundry-3': {
      id: 'laundry-3',
      name: 'LG Styler Steam Closet',
      image: 'https://images.unsplash.com/photo-1584269155219-e82bed7b6392?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2071&q=80',
      category: 'Laundry',
      subcategory: 'Steam Closets',
      price: '$1,299',
      description: 'The LG Styler Steam Closet is a revolutionary garment care system that refreshes, deodorizes, and sanitizes clothing without harsh chemicals. Perfect for delicate items, business attire, and hard-to-wash pieces, the Styler uses TrueSteam technology to reduce wrinkles, remove odors, and eliminate up to 99.9% of common bacteria and allergens.',
      shortDescription: 'Gentle steam refreshing for delicate garments that require special care.',
      features: ['TrueSteam technology eliminates 99.9% of bacteria and allergens', 'Moving hanger action gently shakes out wrinkles', 'Heat pump drying system for gentle, efficient drying', 'Built-in pants press for perfect creases', 'Smart diagnosis and app control via ThinQ technology', 'Quiet 40dB operation suitable for any room in the home'],
      specifications: {
        Capacity: '3 garments plus pants press',
        Dimensions: '17.5" W x 72.8" H x 23" D',
        'Energy Consumption': '105 kWh/year',
        'Cycle Time': '20-67 minutes depending on cycle',
        'Water Tank': '1.4 liter capacity',
        Warranty: '1-year parts & labor'
      },
      reviews: [{
        rating: 5,
        title: 'Game-changer for business attire',
        content: "As someone who wears suits daily, the Styler has dramatically reduced my dry cleaning bills while keeping my clothes looking fresher longer. It's perfect for removing restaurant odors and light refreshing between wearings.",
        author: 'William J.',
        date: '2 months ago'
      }, {
        rating: 4,
        title: 'Excellent for special care items',
        content: "I use this primarily for cashmere, silk, and wool items that are difficult to clean. It works beautifully for refreshing between wearings, though it doesn't replace cleaning for heavily soiled items.",
        author: 'Sophia R.',
        date: '1 month ago'
      }],
      relatedProducts: ['laundry-6', 'laundry-1', 'laundry-2']
    },
    'laundry-4': {
      id: 'laundry-4',
      name: 'Electrolux Front Load Washer',
      image: 'https://images.unsplash.com/photo-1626806787461-102c1bfaaea1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2071&q=80',
      category: 'Laundry',
      subcategory: 'Washing Machines',
      price: '$1,099',
      description: 'The Electrolux Front Load Washer combines innovative technology with exceptional cleaning performance. Featuring the exclusive SmartBoost system that premixes water and detergent before the cycle begins, this washer delivers a more effective clean while being gentle on fabrics. The LuxCare wash system automatically senses the fabric type and soil level to customize each cycle.',
      shortDescription: 'Advanced stain removal with adaptive dispenser and steam technology.',
      features: ['SmartBoost technology premixes water and detergent for better stain removal', 'LuxCare Wash System adapts water levels, temperature, and tumbling action', 'StainSoak option targets specific types of stains', 'Perfect Steam technology rises from the bottom for better penetration', '15-Minute Fast Wash cycle for lightly soiled items', 'Sanitize option eliminates 99.9% of bacteria and 95% of allergens'],
      specifications: {
        Capacity: '4.4 cu. ft.',
        Dimensions: '27" W x 38" H x 32" D',
        'Energy Consumption': '85 kWh/year',
        'Water Consumption': '6.5 gallons per cycle (average)',
        'Spin Speed': 'Up to 1,300 RPM',
        Warranty: '1-year parts & labor, 10-year motor, lifetime tub warranty'
      },
      reviews: [{
        rating: 5,
        title: "Best stain removal I've experienced",
        content: "The SmartBoost technology really works - it removed set-in stains that my previous washer couldn't touch. The machine is quiet, efficient, and the controls are intuitive.",
        author: 'Amanda L.',
        date: '3 months ago'
      }, {
        rating: 4,
        title: 'Excellent performance, some connectivity issues',
        content: 'The washing performance is outstanding, but the app connectivity is somewhat unreliable. When it works, the remote features are convenient, but it occasionally disconnects from our network.',
        author: 'Christopher B.',
        date: '1 month ago'
      }],
      relatedProducts: ['laundry-1', 'laundry-7', 'laundry-5']
    },
    'laundry-5': {
      id: 'laundry-5',
      name: 'Bosch Heat Pump Dryer',
      image: 'https://images.unsplash.com/photo-1604335399105-a0c585fd81a1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80',
      category: 'Laundry',
      subcategory: 'Dryers',
      price: '$1,399',
      description: 'The Bosch Heat Pump Dryer represents the next generation of energy-efficient drying technology. Unlike conventional dryers that expel hot air, this heat pump system recycles hot air, using up to 50% less energy while providing gentle, effective drying. With moisture and temperature sensors that continuously monitor conditions, this dryer delivers precise results for every fabric type.',
      shortDescription: 'Energy-efficient drying with sensor technology and wrinkle protection.',
      features: ['Heat pump technology uses 50% less energy than conventional dryers', 'Moisture and temperature sensors for precise drying', 'AutoDry technology prevents overdrying and fabric damage', 'Condensation drying requires no venting', 'Wrinkle Block program extends tumbling to prevent wrinkles', '15 specialized drying programs including wool, silk, and activewear'],
      specifications: {
        Capacity: '4.0 cu. ft.',
        Dimensions: '24" W x 33.2" H x 25" D',
        'Energy Consumption': '177 kWh/year',
        'Noise Level': '62 dB',
        'Condensation Efficiency': 'A-rated (90%)',
        Warranty: '1-year full warranty, 5-year sealed system'
      },
      reviews: [{
        rating: 5,
        title: 'Revolutionary drying technology',
        content: 'The energy efficiency is remarkable - our utility bills dropped noticeably after switching to this dryer. Clothes come out perfectly dry without being damaged, and the sensor drying is consistently accurate.',
        author: 'Thomas G.',
        date: '2 months ago'
      }, {
        rating: 4,
        title: 'Excellent but different from conventional dryers',
        content: "There's a learning curve coming from a traditional dryer - cycles are longer but much gentler on clothes. Once you adapt to the differences, the results are superior and the energy savings are significant.",
        author: 'Laura M.',
        date: '3 months ago'
      }],
      relatedProducts: ['laundry-8', 'laundry-2', 'laundry-4']
    },
    'laundry-6': {
      id: 'laundry-6',
      name: 'Samsung AirDresser',
      image: 'https://images.unsplash.com/photo-1584269155219-e82bed7b6392?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2071&q=80',
      category: 'Laundry',
      subcategory: 'Steam Closets',
      price: '$1,499',
      description: 'The Samsung AirDresser is an innovative garment care solution that uses powerful air and steam to refresh and sanitize clothing between washes. With JetSteam technology that eliminates 99.9% of common bacteria and viruses, this appliance is perfect for suits, dresses, and delicate items that require special care or are difficult to wash frequently.',
      shortDescription: 'Sanitizes and refreshes clothes with powerful jets of air and steam.',
      features: ['JetSteam technology sanitizes garments and eliminates odors', 'JetAir system blows dust and particles from fabrics', 'Heatpump drying for gentle, efficient moisture removal', 'Wrinkle Care reduces creases and refreshes garments', 'SmartThings connectivity for remote control and notifications', 'Self Clean system sanitizes the interior after each cycle'],
      specifications: {
        Capacity: '3-6 garments depending on type',
        Dimensions: '18.5" W x 72.8" H x 23" D',
        'Energy Consumption': '120 kWh/year',
        'Cycle Time': '20-120 minutes depending on cycle',
        'Water Tank': '2.4 liter capacity',
        Warranty: '1-year parts & labor'
      },
      reviews: [{
        rating: 5,
        title: 'Perfect for professional wardrobes',
        content: 'This has dramatically reduced my dry cleaning expenses while keeping my suits and dress shirts looking impeccable. The sanitizing feature provides peace of mind, especially during cold and flu season.',
        author: 'Michael S.',
        date: '1 month ago'
      }, {
        rating: 4,
        title: 'Excellent for specialty garments',
        content: 'I use this for wool sweaters, silk blouses, and other items that are challenging to clean. It effectively removes odors and refreshes fabrics, though heavily soiled items still need proper washing.',
        author: 'Jennifer K.',
        date: '3 months ago'
      }],
      relatedProducts: ['laundry-3', 'laundry-2', 'laundry-1']
    },
    'laundry-7': {
      id: 'laundry-7',
      name: 'Whirlpool Smart Top Load Washer',
      image: 'https://images.unsplash.com/photo-1626806787461-102c1bfaaea1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2071&q=80',
      category: 'Laundry',
      subcategory: 'Washing Machines',
      price: '$999',
      description: 'The Whirlpool Smart Top Load Washer combines traditional top-loading convenience with modern technology for powerful, efficient cleaning. Featuring the innovative Load & Go dispenser that stores detergent for up to 20 loads, this washer eliminates the need to measure detergent for each cycle. With voice control capabilities and smartphone notifications, this machine brings smart functionality to the classic top-load design.',
      shortDescription: 'Load & Go dispenser with voice control and smartphone notifications.',
      features: ['Load & Go XL dispenser holds detergent for up to 20 loads', 'Built-in water faucet for pretreating stains', 'Adaptive Wash technology with active bloom agitator', 'Voice control via Amazon Alexa or Google Assistant', 'Remote start and notifications through Whirlpool app', 'ColorLast cycle for optimal fabric care'],
      specifications: {
        Capacity: '5.3 cu. ft.',
        Dimensions: '27.5" W x 42" H x 28" D',
        'Energy Consumption': '120 kWh/year',
        'Water Consumption': '13 gallons per cycle (average)',
        'Spin Speed': 'Up to 850 RPM',
        Warranty: '1-year parts & labor, 10-year motor and drum'
      },
      reviews: [{
        rating: 5,
        title: 'Perfect blend of traditional and modern',
        content: 'I wanted a top-loader for ease of adding forgotten items, but with modern efficiency. This washer delivers exactly that, plus the Load & Go feature is incredibly convenient.',
        author: 'Patricia N.',
        date: '2 months ago'
      }, {
        rating: 4,
        title: 'Great performance, some app limitations',
        content: 'The washing performance is excellent, and I love being able to start cycles remotely. The app could use some refinement, but overall this is a significant upgrade from my previous washer.',
        author: 'Robert D.',
        date: '1 month ago'
      }],
      relatedProducts: ['laundry-1', 'laundry-4', 'laundry-8']
    },
    'laundry-8': {
      id: 'laundry-8',
      name: 'LG TurboSteam Dryer',
      image: 'https://images.unsplash.com/photo-1604335399105-a0c585fd81a1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80',
      category: 'Laundry',
      subcategory: 'Dryers',
      price: '$1,099',
      description: 'The LG TurboSteam Dryer combines innovative steam technology with intelligent sensors to deliver superior drying results while reducing wrinkles and odors. The TurboSteam feature generates real steam to refresh garments and reduce static, while the sensor dry system measures moisture levels to prevent over-drying and fabric damage.',
      shortDescription: 'Reduces wrinkles and odors with steam technology and sensor drying.',
      features: ['TurboSteam technology refreshes and reduces wrinkles', 'Sensor Dry system measures moisture and temperature for optimal drying', 'SmartThinQ technology for remote monitoring and control', 'EasyIron option reduces wrinkles during the cycle', '14 drying programs including bedding, sportswear, and delicates', 'FlowSense duct clogging indicator for maintenance alerts'],
      specifications: {
        Capacity: '7.4 cu. ft.',
        Dimensions: '27" W x 38.7" H x 30" D',
        'Energy Consumption': '607 kWh/year',
        'Noise Level': '67 dB',
        'Temperature Settings': '5 levels',
        Warranty: '1-year parts & labor, 10-year motor warranty'
      },
      reviews: [{
        rating: 5,
        title: 'Steam feature is a game-changer',
        content: 'The steam refresh option has saved me countless trips to the dry cleaner. Clothes come out virtually wrinkle-free, and the sensor drying prevents damage to delicate fabrics.',
        author: 'Sarah J.',
        date: '3 months ago'
      }, {
        rating: 5,
        title: 'Efficient and feature-rich',
        content: "This dryer has significantly reduced our ironing time. The app notifications are helpful, and the large capacity handles our family's needs with fewer loads.",
        author: 'David M.',
        date: '2 months ago'
      }],
      relatedProducts: ['laundry-5', 'laundry-2', 'laundry-7']
    },
    // Climate Products
    'climate-1': {
      id: 'climate-1',
      name: 'Dyson Pure Cool TP07 Air Purifier',
      image: 'https://images.unsplash.com/photo-1594142243342-41d20b96e928?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1974&q=80',
      category: 'Climate',
      subcategory: 'Air Purifiers',
      price: '$649',
      description: 'The Dyson Pure Cool TP07 combines advanced air purification with cooling functionality in a sleek, bladeless design. Featuring a HEPA H13 filter that captures 99.95% of particles as small as 0.1 microns, this purifier effectively removes allergens, pollutants, and VOCs while providing powerful airflow for cooling. The integrated LCD display shows real-time air quality data, while the Dyson Link app enables remote control and air quality monitoring.',
      shortDescription: 'Exceptional filtration with detailed air quality monitoring and voice control.',
      features: ['HEPA H13 and activated carbon filtration system', 'Air Multiplier™ technology delivers powerful, smooth airflow', 'Real-time air quality monitoring for PM2.5, PM10, VOCs, and NO2', '350° oscillation for whole-room purification', 'Night mode with quiet settings and dimmed display', 'Voice control compatibility with Alexa, Siri, and Google Assistant'],
      specifications: {
        'Room Coverage': 'Up to 800 sq. ft.',
        Dimensions: '8.8" W x 41" H x 8.8" D',
        'Noise Level': '35-62 dB',
        'Power Consumption': '56 watts',
        'Filter Life': 'Approximately 12 months',
        Warranty: '2-year parts & labor'
      },
      reviews: [{
        rating: 5,
        title: 'Transformative for allergy sufferers',
        content: "As someone with severe allergies, this purifier has been life-changing. The air quality in our home has improved dramatically, and the detailed monitoring gives peace of mind about what we're breathing.",
        author: 'Jessica L.',
        date: '2 months ago'
      }, {
        rating: 4,
        title: 'Excellent performance, premium price',
        content: 'The filtration and air movement are exceptional, and the app functionality is genuinely useful. The filter replacement cost is significant, but the performance justifies the investment for us.',
        author: 'Mark S.',
        date: '1 month ago'
      }],
      relatedProducts: ['climate-4', 'climate-6', 'climate-2']
    },
    'climate-2': {
      id: 'climate-2',
      name: 'Ecobee Smart Thermostat Premium',
      image: 'https://images.unsplash.com/photo-1585771724684-38269d6639fd?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80',
      category: 'Climate',
      subcategory: 'Thermostats',
      price: '$249',
      description: 'The Ecobee Smart Thermostat Premium represents the most advanced smart thermostat available, combining precise temperature control with air quality monitoring and built-in voice control. With included room sensors that detect both temperature and occupancy, this thermostat delivers comfort where it matters while saving energy in unoccupied spaces. The integrated speaker and microphone provide voice assistant functionality directly from your thermostat.',
      shortDescription: 'AI-powered climate control with room sensors for optimal comfort.',
      features: ['SmartSensor included for temperature and occupancy detection', 'Built-in air quality monitor for VOCs and CO2', 'Integrated Alexa voice assistant and speaker', 'Smart Home/Away detection adjusts settings automatically', 'Eco+ adaptive optimization for energy savings', 'Compatible with most 24VAC HVAC systems'],
      specifications: {
        Display: '4-inch full-color touch display',
        Dimensions: '4.09" W x 4.09" H x 1.02" D',
        Power: '24VAC (C-wire or Power Extender Kit)',
        Connectivity: 'WiFi, Bluetooth, Thread, Zigbee',
        'Voice Assistants': 'Built-in Alexa, works with Google Assistant, Siri',
        Warranty: '3-year limited warranty'
      },
      reviews: [{
        rating: 5,
        title: 'The ultimate smart thermostat',
        content: "The room sensors have made a huge difference in maintaining consistent comfort throughout our home. The energy savings are significant, and the air quality monitoring provides valuable insights we didn't have before.",
        author: 'Daniel R.',
        date: '3 months ago'
      }, {
        rating: 5,
        title: 'Sophisticated yet user-friendly',
        content: 'Despite its advanced features, the interface is intuitive and the installation was straightforward. The voice control is responsive, and the learning algorithm has noticeably improved our comfort while reducing our energy bills.',
        author: 'Amanda P.',
        date: '1 month ago'
      }],
      relatedProducts: ['climate-5', 'climate-3', 'climate-6']
    },
    'climate-3': {
      id: 'climate-3',
      name: 'Mitsubishi Electric Split System AC',
      image: 'https://images.unsplash.com/photo-1624811533744-f85d5325d49c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1974&q=80',
      category: 'Climate',
      subcategory: 'Air Conditioners',
      price: '$1,899',
      description: 'The Mitsubishi Electric Split System Air Conditioner delivers exceptional cooling and heating performance with industry-leading energy efficiency. Utilizing advanced inverter technology, this system continuously adjusts its output to maintain precise temperature control while minimizing energy consumption. With whisper-quiet operation and sophisticated filtration, this split system provides superior comfort and air quality in a sleek, modern design.',
      shortDescription: 'Whisper-quiet operation with advanced filtration and energy efficiency.',
      features: ['Hyper-Heating INVERTER® technology for consistent performance in extreme temperatures', 'i-see Sensor™ 3D scans and adjusts airflow based on room occupancy', 'Dual-stage filtration with nano platinum filter', 'Whisper-quiet operation as low as 19dB', 'WiFi control with kumo cloud® mobile app', 'Weekly timer with up to 4 settings per day'],
      specifications: {
        'Cooling Capacity': '12,000 BTU',
        'Heating Capacity': '13,600 BTU',
        'SEER Rating': '30.5 (industry-leading efficiency)',
        'Indoor Unit Dimensions': '32.9" W x 11.6" H x 9.4" D',
        'Outdoor Unit Dimensions': '31.5" W x 22.2" H x 11.2" D',
        Warranty: '12-year parts warranty with registration'
      },
      reviews: [{
        rating: 5,
        title: 'Exceptional performance year-round',
        content: 'We installed this system to replace window units, and the difference is remarkable. It heats effectively even in sub-zero temperatures, and the summer cooling is powerful yet incredibly efficient.',
        author: 'Thomas L.',
        date: '4 months ago'
      }, {
        rating: 5,
        title: 'Whisper quiet and powerful',
        content: "The noise level is so low that we sometimes check to make sure it's running. The air quality has improved noticeably with the filtration system, and the app control is convenient and reliable.",
        author: 'Rebecca M.',
        date: '2 months ago'
      }],
      relatedProducts: ['climate-6', 'climate-2', 'climate-5']
    },
    'climate-4': {
      id: 'climate-4',
      name: 'Molekule Air Pro Purifier',
      image: 'https://images.unsplash.com/photo-1527089731344-6055587d9fe1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80',
      category: 'Climate',
      subcategory: 'Air Purifiers',
      price: '$999',
      description: 'The Molekule Air Pro represents a breakthrough in air purification technology, using patented Photo Electrochemical Oxidation (PECO) to destroy pollutants at a molecular level rather than simply trapping them. Designed for large spaces, this purifier not only captures but eliminates allergens, bacteria, viruses, and VOCs, while providing detailed air quality monitoring and smart connectivity for optimal performance.',
      shortDescription: 'PECO technology destroys pollutants at a molecular level for cleaner air.',
      features: ['PECO technology destroys pollutants rather than just collecting them', 'Tri-level filtration system with pre-filter, PECO-Filter, and carbon filter', 'Particle sensor with detailed air quality monitoring', 'Six fan speeds with Auto Protect mode', 'Touch-screen interface with intuitive controls', 'WiFi connectivity with smartphone app control'],
      specifications: {
        'Room Coverage': 'Up to 1,000 sq. ft.',
        Dimensions: '11" W x 23" H x 11" D',
        'Noise Level': '30-65 dB',
        'Power Consumption': '20-90 watts',
        'Filter Life': 'Pre-filter: 3 months, PECO-Filter: 6 months',
        Warranty: '2-year limited warranty'
      },
      reviews: [{
        rating: 5,
        title: 'Revolutionary technology',
        content: "After trying numerous air purifiers, the Molekule is in a different league. The destruction of pollutants rather than just filtering them has made a noticeable difference for our family's allergies and asthma.",
        author: 'Katherine P.',
        date: '3 months ago'
      }, {
        rating: 4,
        title: 'Excellent performance, premium price',
        content: 'The air quality improvement is undeniable, and the design is beautiful. The filter replacement costs are significant, but the health benefits have been worth it for our family.',
        author: 'Michael T.',
        date: '1 month ago'
      }],
      relatedProducts: ['climate-1', 'climate-8', 'climate-6']
    },
    'climate-5': {
      id: 'climate-5',
      name: 'Nest Learning Thermostat',
      image: 'https://images.unsplash.com/photo-1585771724684-38269d6639fd?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80',
      category: 'Climate',
      subcategory: 'Thermostats',
      price: '$249',
      description: 'The Nest Learning Thermostat revolutionized the smart home industry with its ability to learn your schedule and preferences, automatically creating a personalized temperature program. Now in its 3rd generation, this iconic thermostat features a sleek, circular design with a high-resolution color display that can be seen from across the room. With features like Farsight, Home/Away Assist, and energy usage reporting, this thermostat optimizes comfort while reducing energy consumption.',
      shortDescription: 'Self-learning capabilities that adapt to your schedule for optimal efficiency.',
      features: ['Auto-Schedule learns your preferences and creates a personalized schedule', 'Home/Away Assist adjusts temperature when no one is home', 'Farsight displays information visible from across the room', "Energy History shows how much energy you've used", 'Works with Google Assistant and Amazon Alexa', 'Compatible with most 24V heating and cooling systems'],
      specifications: {
        Display: '2.08-inch diameter, 480x480 resolution',
        Dimensions: '3.3" diameter x 1.21" depth',
        Power: '24V or built-in rechargeable lithium-ion battery',
        Connectivity: 'WiFi, Bluetooth Low Energy',
        Sensors: 'Temperature, Humidity, Proximity, Ambient light, Occupancy',
        Warranty: '2-year limited warranty'
      },
      reviews: [{
        rating: 5,
        title: 'Still the best smart thermostat',
        content: 'After using various smart thermostats, I keep coming back to Nest. The learning feature actually works, creating a schedule that matches our lifestyle perfectly while saving energy.',
        author: 'James W.',
        date: '2 months ago'
      }, {
        rating: 4,
        title: 'Beautiful design, effective learning',
        content: 'The thermostat looks elegant on our wall and operates intuitively. The energy savings have been significant, though I wish it had remote temperature sensors built into the system.',
        author: 'Emily R.',
        date: '3 months ago'
      }],
      relatedProducts: ['climate-2', 'climate-6', 'climate-3']
    },
    'climate-6': {
      id: 'climate-6',
      name: 'Daikin Multi-Zone Mini Split',
      image: 'https://images.unsplash.com/photo-1624811533744-f85d5325d49c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1974&q=80',
      category: 'Climate',
      subcategory: 'Air Conditioners',
      price: '$2,499',
      description: 'The Daikin Multi-Zone Mini Split system provides individualized comfort for up to five zones from a single outdoor unit. This flexible solution allows you to control the temperature in each room independently, optimizing both comfort and energy efficiency. With inverter technology that continuously adjusts compressor speed, this system delivers precise temperature control while using significantly less energy than conventional systems.',
      shortDescription: 'Individual zone control with inverter technology for maximum efficiency.',
      features: ['Multi-zone capability with up to 5 indoor units per outdoor unit', 'Inverter technology for precise temperature control and energy efficiency', 'Individual zone temperature settings', 'Intelligent Eye motion detector adjusts operation based on room occupancy', 'Titanium apatite deodorizing filter removes odors', 'Wireless remote control for each indoor unit'],
      specifications: {
        'Cooling Capacity': '18,000 BTU (total system)',
        'Heating Capacity': '20,000 BTU (total system)',
        'SEER Rating': '22.0',
        'Indoor Unit Dimensions': 'Varies by model',
        'Outdoor Unit Dimensions': '36.6" W x 28.5" H x 12.6" D',
        Warranty: '12-year parts warranty with registration'
      },
      reviews: [{
        rating: 5,
        title: 'Perfect solution for our home',
        content: "We installed this system to replace inefficient window units and baseboard heating. The energy savings have been substantial, and we love being able to control each room's temperature independently.",
        author: 'Robert J.',
        date: '4 months ago'
      }, {
        rating: 5,
        title: 'Quiet and efficient',
        content: "The system operates so quietly we barely notice it's running. The individual zone control has eliminated the temperature disputes in our household, and our energy bills have decreased by about 30%.",
        author: 'Sarah M.',
        date: '2 months ago'
      }],
      relatedProducts: ['climate-3', 'climate-2', 'climate-5']
    },
    'climate-7': {
      id: 'climate-7',
      name: 'Levoit Core 400S Air Purifier',
      image: 'https://images.unsplash.com/photo-1594142243342-41d20b96e928?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1974&q=80',
      category: 'Climate',
      subcategory: 'Air Purifiers',
      price: '$219',
      description: 'The Levoit Core 400S combines powerful air purification with smart connectivity at an accessible price point. Featuring a true HEPA H13 filter that captures 99.97% of airborne particles as small as 0.3 microns, this purifier effectively removes dust, pollen, pet dander, and smoke from large rooms. With app control, air quality monitoring, and voice assistant compatibility, the Core 400S delivers premium features without the premium price tag.',
      shortDescription: 'H13 True HEPA filter with app control and air quality monitoring.',
      features: ['H13 True HEPA filtration captures 99.97% of particles as small as 0.3 microns', 'Activated carbon filter reduces odors and VOCs', 'Real-time air quality monitoring with numerical PM2.5 display', 'VeSync app for remote control and scheduling', 'Compatible with Amazon Alexa and Google Assistant', 'Sleep Mode operates quietly at 24dB'],
      specifications: {
        'Room Coverage': 'Up to 400 sq. ft. (5 air changes per hour)',
        Dimensions: '10.8" W x 20.5" H x 10.8" D',
        'Noise Level': '24-52 dB',
        'Power Consumption': '38 watts',
        'Filter Life': '6-8 months depending on usage',
        Warranty: '2-year warranty'
      },
      reviews: [{
        rating: 5,
        title: 'Exceptional value',
        content: 'This purifier offers performance comparable to units twice its price. The app is intuitive, and the air quality sensor has proven accurate when compared to our standalone meter.',
        author: 'Jennifer T.',
        date: '2 months ago'
      }, {
        rating: 4,
        title: 'Great performance, some app limitations',
        content: 'The purification performance is excellent, and operation is quiet in sleep mode. The app occasionally disconnects but reconnects automatically. Filter replacements are reasonably priced compared to competitors.',
        author: 'Brian M.',
        date: '1 month ago'
      }],
      relatedProducts: ['climate-1', 'climate-4', 'climate-8']
    },
    'climate-8': {
      id: 'climate-8',
      name: 'Honeywell Smart Evaporative Humidifier',
      image: 'https://images.unsplash.com/photo-1527089731344-6055587d9fe1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80',
      category: 'Climate',
      subcategory: 'Humidifiers',
      price: '$179',
      description: 'The Honeywell Smart Evaporative Humidifier uses advanced evaporative technology to add invisible moisture to the air, helping to alleviate dry skin, static electricity, and respiratory discomfort. Unlike ultrasonic humidifiers that can spread mineral dust, this evaporative system naturally prevents over-humidification and white dust. With smart connectivity, humidity sensing, and antimicrobial design, this humidifier delivers healthy humidity with minimal maintenance.',
      shortDescription: 'Auto humidity control with antimicrobial design and smart home integration.',
      features: ['Evaporative technology prevents over-humidification and white dust', 'Auto humidity control maintains optimal humidity levels', 'Antimicrobial design inhibits bacteria growth', 'WiFi connectivity with smartphone app control', '3 speed settings with auto mode and sleep mode', 'Easy-fill 1.5 gallon tank with up to 24 hours of runtime'],
      specifications: {
        'Room Coverage': 'Up to 1,000 sq. ft.',
        Dimensions: '17.5" W x 12.3" H x 9.4" D',
        'Noise Level': '30-55 dB',
        'Water Tank': '1.5 gallons',
        'Power Consumption': '40 watts',
        Warranty: '3-year limited warranty'
      },
      reviews: [{
        rating: 5,
        title: 'Perfect for dry winter air',
        content: 'This humidifier has eliminated the dry air problems in our home during winter. The evaporative technology means no white dust, and the auto humidity control maintains optimal levels without constant adjustment.',
        author: 'Lauren K.',
        date: '3 months ago'
      }, {
        rating: 4,
        title: 'Effective and low maintenance',
        content: "The humidifier works extremely well and requires much less cleaning than ultrasonic models we've used. The app connectivity is convenient for monitoring levels and adjusting settings remotely.",
        author: 'Andrew P.',
        date: '1 month ago'
      }],
      relatedProducts: ['climate-4', 'climate-1', 'climate-2']
    },
    // Security Products
    'security-1': {
      id: 'security-1',
      name: 'Nest x Yale Smart Lock',
      image: 'https://images.unsplash.com/photo-1582555172866-f73bb12a2ab3?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80',
      category: 'Security',
      subcategory: 'Smart Locks',
      price: '$279',
      description: "The Nest x Yale Smart Lock combines Yale's century of experience in lock manufacturing with Nest's smart home expertise to create a secure, keyless entry system for your home. With a sleek, tamper-resistant design that has no keyhole to pick, this lock offers multiple access methods including passcodes, remote access through the Nest app, and automatic unlocking when you arrive home. Integration with Google Home provides seamless connectivity with your broader smart home ecosystem.",
      shortDescription: 'Keyless entry with remote access control and integration with Google Home.',
      features: ['Keyless deadbolt with tamper-resistant design', 'Create and manage up to 20 unique passcodes', 'Remote locking and unlocking through Nest app', 'Automatic locking after a customizable period', 'Privacy mode disables all passcodes when activated', 'Low battery alerts sent to your phone'],
      specifications: {
        Power: '4 AA batteries (included)',
        'Battery Life': 'Approximately 1 year',
        Dimensions: '2.59" W x 4.59" H x 0.8" D (exterior)',
        Connectivity: 'Thread/Weave network via Nest Connect (included)',
        Compatibility: 'Standard doors 1-3/8" to 2-1/4" thick',
        Warranty: '2-year limited warranty'
      },
      reviews: [{
        rating: 5,
        title: 'Reliable and convenient',
        content: 'After six months of daily use, this lock has performed flawlessly. The automatic locking feature gives peace of mind, and being able to grant temporary access to visitors remotely has been incredibly convenient.',
        author: 'Christopher L.',
        date: '2 months ago'
      }, {
        rating: 4,
        title: 'Excellent but requires Nest ecosystem',
        content: "The lock itself is excellent - reliable, secure, and easy to use. Just be aware that you'll get the most benefit if you're already invested in the Nest/Google ecosystem.",
        author: 'Melissa P.',
        date: '3 months ago'
      }],
      relatedProducts: ['security-4', 'security-8', 'security-2']
    },
    'security-2': {
      id: 'security-2',
      name: 'Ring Video Doorbell Pro 2',
      image: 'https://images.unsplash.com/photo-1558002038-1055907df827?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80',
      category: 'Security',
      subcategory: 'Doorbells',
      price: '$249',
      description: "The Ring Video Doorbell Pro 2 represents the most advanced video doorbell in Ring's lineup, featuring 3D motion detection with radar technology and a head-to-toe video view that ensures you can see packages left at your doorstep. With enhanced HDR video, color night vision, and advanced audio capabilities, this doorbell provides comprehensive monitoring of your entryway with crystal-clear detail day or night.",
      shortDescription: '3D motion detection with head-to-toe video and enhanced audio quality.',
      features: ["3D motion detection with Bird's Eye View for precise motion tracking", 'Head-to-Toe HD+ video with 150° horizontal and vertical field of view', 'Enhanced dual-band WiFi connectivity', 'Two-way talk with Audio+ for clearer communication', 'Advanced Pre-Roll captures 4 seconds before motion events', "Alexa Greetings can answer the door when you're unavailable"],
      specifications: {
        Resolution: '1536p HD with HDR',
        Power: 'Hardwired installation (16-24 VAC)',
        Dimensions: '4.49" H x 1.9" W x 0.87" D',
        Connectivity: 'Dual-band WiFi (2.4GHz and 5GHz)',
        'Night Vision': 'Color night vision with adequate lighting',
        Warranty: '1-year limited warranty'
      },
      reviews: [{
        rating: 5,
        title: 'Significant upgrade from previous models',
        content: 'The head-to-toe view and 3D motion detection are game-changers. We can now see packages on the doorstep and get much more precise motion alerts. The video and audio quality are noticeably improved.',
        author: 'Jonathan T.',
        date: '1 month ago'
      }, {
        rating: 4,
        title: 'Excellent features, subscription required',
        content: 'The doorbell itself is fantastic - clear video, reliable notifications, and the 3D motion is impressively accurate. Just be aware that many of the best features require the Ring Protect subscription.',
        author: 'Stephanie R.',
        date: '2 months ago'
      }],
      relatedProducts: ['security-8', 'security-3', 'security-1']
    },
    'security-3': {
      id: 'security-3',
      name: 'Arlo Pro 4 Security Camera System',
      image: 'https://images.unsplash.com/photo-1580745294621-1d791f60ef5c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1974&q=80',
      category: 'Security',
      subcategory: 'Cameras',
      price: '$549',
      description: 'The Arlo Pro 4 Security Camera System delivers premium wireless security monitoring with 2K HDR video quality and color night vision. This versatile system connects directly to WiFi without requiring a base station, making installation simpler than ever. With a 160-degree viewing angle, integrated spotlight, and two-way audio, these cameras provide comprehensive coverage and deterrence for your property.',
      shortDescription: 'Wire-free 2K HDR cameras with color night vision and 160° viewing angle.',
      features: ['2K video resolution with HDR for enhanced clarity', 'Color night vision with integrated spotlight', 'Wire-free design with rechargeable battery', 'Direct WiFi connection without base station', 'Two-way audio with noise cancellation', 'Smart notifications with object detection (person, vehicle, animal)'],
      specifications: {
        Resolution: '2K (2560x1440) with HDR',
        'Field of View': '160° diagonal',
        'Battery Life': 'Up to 6 months per charge',
        'Weather Resistance': 'IP65-rated for outdoor use',
        Storage: 'Cloud storage with subscription, local storage option available',
        Warranty: '1-year limited warranty'
      },
      reviews: [{
        rating: 5,
        title: 'Exceptional image quality and reliability',
        content: 'After trying several wireless camera systems, the Arlo Pro 4 stands out for its image clarity and reliable notifications. The color night vision provides much more useful footage than traditional infrared cameras.',
        author: 'Michael S.',
        date: '3 months ago'
      }, {
        rating: 4,
        title: 'Great cameras, consider subscription costs',
        content: 'The camera quality and features are excellent, and the direct WiFi connection simplifies setup. Battery life has been impressive at about 4-5 months per charge. Just factor in the subscription cost for full functionality.',
        author: 'Rebecca J.',
        date: '2 months ago'
      }],
      relatedProducts: ['security-5', 'security-2', 'security-6']
    },
    'security-4': {
      id: 'security-4',
      name: 'August Wi-Fi Smart Lock',
      image: 'https://images.unsplash.com/photo-1582555172866-f73bb12a2ab3?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80',
      category: 'Security',
      subcategory: 'Smart Locks',
      price: '$229',
      description: 'The August Wi-Fi Smart Lock offers sophisticated access control in a sleek, compact design that installs over your existing deadbolt. With built-in Wi-Fi connectivity, this lock eliminates the need for a separate bridge while enabling remote access, auto-unlock capabilities, and integration with major smart home platforms. The retrofit installation preserves your existing keys while adding smart functionality to your door.',
      shortDescription: 'Retrofits to existing deadbolts with built-in Wi-Fi and auto-unlock feature.',
      features: ['Retrofit installation works with your existing deadbolt', 'Built-in Wi-Fi connectivity (no bridge required)', 'Auto-Unlock detects your arrival and unlocks automatically', 'DoorSense™ technology confirms when your door is completely closed', 'Activity tracking with custom notifications', 'Works with Alexa, Google Assistant, and Apple HomeKit'],
      specifications: {
        Dimensions: '2.83" diameter x 1.81" depth',
        Power: '2 CR123A batteries',
        'Battery Life': '3-6 months depending on usage',
        Connectivity: 'Built-in Wi-Fi (2.4GHz)',
        Compatibility: 'Works with most single-cylinder deadbolts',
        Warranty: '1-year limited warranty'
      },
      reviews: [{
        rating: 5,
        title: 'Perfect balance of features and simplicity',
        content: 'The August lock offers everything I wanted - auto-unlock, remote access, and smart home integration - without requiring a complete replacement of my existing lock. Installation took less than 15 minutes.',
        author: 'David L.',
        date: '1 month ago'
      }, {
        rating: 4,
        title: 'Excellent but watch battery life',
        content: 'The lock functions perfectly and the app is intuitive. The auto-unlock feature has been reliable, though the batteries need replacement more frequently than expected with heavy use.',
        author: 'Samantha K.',
        date: '2 months ago'
      }],
      relatedProducts: ['security-1', 'security-8', 'security-2']
    },
    'security-5': {
      id: 'security-5',
      name: 'Google Nest Cam (Battery)',
      image: 'https://images.unsplash.com/photo-1580745294621-1d791f60ef5c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1974&q=80',
      category: 'Security',
      subcategory: 'Cameras',
      price: '$179',
      description: 'The Google Nest Cam (Battery) combines versatile placement options with intelligent monitoring capabilities in a weather-resistant design suitable for both indoor and outdoor use. With on-device processing that can distinguish between people, animals, and vehicles, this camera delivers smart alerts without requiring a subscription. The built-in battery provides months of operation between charges, while the magnetic mount allows for easy installation without wiring.',
      shortDescription: 'Wire-free installation with intelligent alerts and 3 hours of event history.',
      features: ['Battery-powered with up to 3 months of battery life', 'On-device intelligent alerts for people, animals, and vehicles', 'HDR video with night vision', 'Weather-resistant design for indoor or outdoor use', '3 hours of event video history without subscription', 'Two-way talk with noise cancellation'],
      specifications: {
        Resolution: '1080p HD',
        'Field of View': '130° diagonal',
        'Battery Life': 'Up to 3 months (typical usage)',
        'Weather Resistance': 'IP54 rated',
        'Operating Temperature': '-4°F to 104°F',
        Warranty: '1-year limited warranty'
      },
      reviews: [{
        rating: 5,
        title: 'Impressive intelligence without subscription',
        content: 'The on-device person/animal/vehicle detection works remarkably well, and having 3 hours of event history without a subscription is more useful than expected. Battery life has been excellent at about 2.5 months per charge.',
        author: 'Thomas R.',
        date: '3 months ago'
      }, {
        rating: 4,
        title: 'Versatile and reliable',
        content: 'The magnetic mount makes placement and angle adjustment incredibly easy. Video quality is excellent in both day and night conditions. The only drawback is that full continuous recording requires a subscription.',
        author: 'Jennifer P.',
        date: '2 months ago'
      }],
      relatedProducts: ['security-3', 'security-6', 'security-2']
    },
    'security-6': {
      id: 'security-6',
      name: 'SimpliSafe Sensor Kit',
      image: 'https://images.unsplash.com/photo-1585909695284-32d2985ac9c0?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80',
      category: 'Security',
      subcategory: 'Sensors',
      price: '$199',
      description: 'The SimpliSafe Sensor Kit provides comprehensive home security through a collection of wireless sensors that detect various threats and environmental hazards. This customizable system includes entry sensors for doors and windows, motion detectors, and environmental sensors that alert you to potential dangers like water leaks, freezing temperatures, or smoke. With easy DIY installation and no long-term contracts, this system offers flexible security with optional professional monitoring.',
      shortDescription: 'Entry, motion, and environmental sensors with professional monitoring options.',
      features: ['Entry sensors for doors and windows', 'Motion sensors with pet-friendly settings', 'Water sensors for leak detection', 'Temperature sensors for freeze warnings', 'Smoke detectors and carbon monoxide sensors', 'Wireless design with 5-year battery life'],
      specifications: {
        'Base Station Range': 'Up to 1,000 ft.',
        Power: 'Battery-powered sensors with 5-year battery life',
        Connectivity: 'Cellular backup (included)',
        Siren: '95dB built into base station',
        'Monitoring Options': 'Self-monitoring or professional monitoring available',
        Warranty: '3-year warranty'
      },
      reviews: [{
        rating: 5,
        title: 'Complete peace of mind',
        content: 'This system has transformed our sense of security at home. The installation was incredibly simple, and the app provides clear notifications. We opted for professional monitoring for complete coverage.',
        author: 'Robert M.',
        date: '2 months ago'
      }, {
        rating: 5,
        title: 'Versatile and reliable',
        content: 'The variety of sensors allows us to monitor everything from doors and windows to potential water leaks in the basement. The system has been 100% reliable with no false alarms in six months of use.',
        author: 'Amanda J.',
        date: '3 months ago'
      }],
      relatedProducts: ['security-3', 'security-5', 'security-8']
    },
    'security-7': {
      id: 'security-7',
      name: 'Eufy Video Doorbell 2K',
      image: 'https://images.unsplash.com/photo-1558002038-1055907df827?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80',
      category: 'Security',
      subcategory: 'Doorbells',
      price: '$169',
      description: "The Eufy Video Doorbell 2K stands out in the smart doorbell market by offering high-resolution video without requiring a monthly subscription. With local storage via the included HomeBase, this doorbell stores footage securely without cloud dependencies. Advanced AI detects human figures specifically, reducing false alerts from passing cars or animals, while the quick response feature allows you to respond to visitors with pre-recorded messages when you can't answer the door.",
      shortDescription: 'No monthly fees with local storage and AI-powered person detection.',
      features: ['2K resolution (2560 x 1920) with HDR', 'Local storage via included HomeBase (16GB)', 'AI-powered human detection', 'Quick Response with pre-recorded messages', 'Dual power options: hardwired or battery', 'Two-way audio with noise cancellation'],
      specifications: {
        Resolution: '2K (2560 x 1920)',
        'Field of View': '160° diagonal',
        Power: 'Hardwired or battery (up to 6 months per charge)',
        Storage: '16GB local storage (up to 90 days of events)',
        'Weather Resistance': 'IP65 weatherproofing',
        Warranty: '1-year limited warranty'
      },
      reviews: [{
        rating: 5,
        title: 'Excellent value with no subscription',
        content: 'The video quality is outstanding, and the local storage means no monthly fees. The person detection has been accurate, and we appreciate not being nickel-and-dimed for cloud storage.',
        author: 'Daniel T.',
        date: '1 month ago'
      }, {
        rating: 4,
        title: 'Great features and performance',
        content: "Installation was straightforward, and the image quality is excellent day and night. The quick response feature has been particularly useful for package deliveries when we're not home.",
        author: 'Lisa M.',
        date: '3 months ago'
      }],
      relatedProducts: ['security-2', 'security-3', 'security-1']
    },
    'security-8': {
      id: 'security-8',
      name: 'Level Touch Smart Lock',
      image: 'https://images.unsplash.com/photo-1582555172866-f73bb12a2ab3?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80',
      category: 'Security',
      subcategory: 'Smart Locks',
      price: '$329',
      description: "The Level Touch Smart Lock represents a revolution in smart lock design, completely hiding its technology inside your door for an invisible smart home experience. Unlike other smart locks with obvious keypads or bulky housings, the Level Touch maintains your door's original appearance while adding touch controls, key card access, and smartphone connectivity. With precision engineering and all components hidden inside the door, this lock delivers sophisticated functionality in an elegant, minimalist package.",
      shortDescription: 'Invisible design that replaces your entire lock with touch and key card access.',
      features: ['Completely invisible smart lock technology', 'Touch control: lock by touching the deadbolt with your finger', 'Key card access with included programmable cards', 'Auto lock/unlock based on your location', 'Share temporary or permanent access via the app', 'Compatible with Apple HomeKit and Ring'],
      specifications: {
        Dimensions: 'Same as standard deadbolt',
        Power: 'CR2 battery (included)',
        'Battery Life': 'Approximately 1 year',
        Connectivity: 'Bluetooth, with optional Z-Wave or HomeKit connectivity',
        Compatibility: 'Standard deadbolt doors',
        Warranty: '2-year limited warranty'
      },
      reviews: [{
        rating: 5,
        title: 'Beautiful design with flawless function',
        content: 'This lock is a technological marvel - nobody can tell we have a smart lock, yet we have all the convenience of keyless entry. The touch function works perfectly, and the key cards are great for guests.',
        author: 'Alexander M.',
        date: '2 months ago'
      }, {
        rating: 5,
        title: 'Premium quality and performance',
        content: "The engineering quality is immediately apparent - smooth operation, solid construction, and flawless connectivity. The invisible design maintains our home's aesthetic while adding modern convenience.",
        author: 'Victoria L.',
        date: '1 month ago'
      }],
      relatedProducts: ['security-1', 'security-4', 'security-2']
    }
  };
  // Get the specific product based on ID
  const product = allProducts[id as keyof typeof allProducts];
  
  // Set page title if product exists
  if (product) {
    usePageTitle(product.name);
  }
  
  // If product not found, show a message
  if (!product) {
    return <div className="w-full bg-white min-h-screen flex items-center justify-center">
        <div className="text-center p-8">
          <h1 className="text-2xl font-bold mb-4">Product Not Found</h1>
          <p className="mb-6">
            The product you're looking for doesn't exist or has been removed.
          </p>
          <Link to="/" className="bg-[#d4a373] hover:bg-[#c99b6e] text-white px-6 py-3 rounded-md transition-colors">
            Return to Home
          </Link>
        </div>
      </div>;
  }
  // Find related products data
  const relatedProductsData = product.relatedProducts.map(relatedId => {
    const relatedProduct = allProducts[relatedId as keyof typeof allProducts];
    return {
      id: relatedId,
      name: relatedProduct?.name || '',
      image: relatedProduct?.image || '',
      category: relatedProduct?.category || '',
      subcategory: relatedProduct?.subcategory || '',
      price: relatedProduct?.price || ''
    };
  });
  return <div className="w-full bg-white">
      {/* Breadcrumb */}
      <div className="bg-[#f8f9fa] border-b">
        <div className="container mx-auto px-4 py-3">
          <div className="flex items-center text-sm">
            <Link to="/" className="text-gray-500 hover:text-[#d4a373]">
              Home
            </Link>
            <span className="mx-2 text-gray-400">/</span>
            <Link to={`/${product.category.toLowerCase()}`} className="text-gray-500 hover:text-[#d4a373]">
              {product.category}
            </Link>
            <span className="mx-2 text-gray-400">/</span>
            <span className="text-gray-700">{product.name}</span>
          </div>
        </div>
      </div>
      {/* Product detail section */}
      <section className="py-12">
        <div className="container mx-auto px-4">
          <div className="flex flex-col lg:flex-row">
            {/* Product image */}
            <div className="lg:w-1/2 mb-8 lg:mb-0 lg:pr-8">
              <div className="bg-[#f8f9fa] rounded-lg overflow-hidden">
                <img src={product.image} alt={product.name} className="w-full h-auto object-cover" style={{
                maxHeight: '500px'
              }} />
              </div>
            </div>
            {/* Product info */}
            <div className="lg:w-1/2">
              <span className="bg-[#e9ecef] text-[#343a40] text-sm px-2 py-1 rounded">
                {product.subcategory}
              </span>
              <h1 className="text-3xl font-bold mt-3 mb-4">{product.name}</h1>
              <div className="flex items-center mb-6">
                <div className="flex mr-2">
                  {[1, 2, 3, 4, 5].map(star => <StarIcon key={star} size={18} className="text-[#ffd166] fill-[#ffd166] mr-0.5" />)}
                </div>
                <span className="text-sm text-gray-500">
                  (Based on {product.reviews.length} reviews)
                </span>
              </div>
              <p className="text-2xl font-semibold text-[#d4a373] mb-6">
                {product.price}
              </p>
              <p className="text-gray-700 mb-6">{product.description}</p>
              <div className="mb-8">
                <h3 className="font-bold text-lg mb-3">Key Features:</h3>
                <ul className="space-y-2">
                  {product.features.map((feature, index) => <li key={index} className="flex items-start">
                      <CheckIcon size={18} className="text-green-500 mr-2 mt-1 flex-shrink-0" />
                      <span>{feature}</span>
                    </li>)}
                </ul>
              </div>
            </div>
          </div>
        </div>
      </section>
      {/* Specifications section */}
      <section className="py-12 bg-[#f8f9fa]">
        <div className="container mx-auto px-4">
          <h2 className="text-2xl font-bold mb-8">Technical Specifications</h2>
          <div className="bg-white rounded-lg shadow-sm overflow-hidden">
            <table className="w-full">
              <tbody>
                {Object.entries(product.specifications).map(([key, value], index) => <tr key={key} className={index % 2 === 0 ? 'bg-white' : 'bg-[#f8f9fa]'}>
                      <td className="px-6 py-4 font-medium">{key}</td>
                      <td className="px-6 py-4">{value}</td>
                    </tr>)}
              </tbody>
            </table>
          </div>
        </div>
      </section>
      {/* Reviews section */}
      <section className="py-12">
        <div className="container mx-auto px-4">
          <h2 className="text-2xl font-bold mb-8">Customer Reviews</h2>
          <div className="space-y-6">
            {product.reviews.map((review, index) => <div key={index} className="border-b border-gray-200 pb-6 last:border-0">
                <div className="flex justify-between items-start mb-2">
                  <h3 className="font-bold text-lg">{review.title}</h3>
                  <div className="flex">
                    {[1, 2, 3, 4, 5].map(star => <StarIcon key={star} size={16} className={star <= review.rating ? 'text-[#ffd166] fill-[#ffd166]' : 'text-gray-300'} />)}
                  </div>
                </div>
                <p className="text-sm text-gray-500 mb-3">
                  By {review.author} • {review.date}
                </p>
                <p className="text-gray-700">{review.content}</p>
              </div>)}
          </div>
        </div>
      </section>
      {/* Related products section */}
      <section className="py-12 bg-[#f8f9fa]">
        <div className="container mx-auto px-4">
          <h2 className="text-2xl font-bold mb-8">You May Also Like</h2>
          <div className="grid grid-cols-1 md:grid-cols-3 gap-6">
            {relatedProductsData.map(relatedProduct => <Link key={relatedProduct.id} to={`/product/${relatedProduct.id}`} className="bg-white rounded-lg overflow-hidden shadow-md hover:shadow-lg transition-shadow">
                <div className="h-48 overflow-hidden">
                  <ImageWithLoader src={relatedProduct.image} alt={relatedProduct.name} className="w-full h-full object-cover" />
                </div>
                <div className="p-4">
                  <div className="mb-2">
                    <span className="bg-[#e9ecef] text-[#343a40] text-xs px-2 py-1 rounded">
                      {relatedProduct.subcategory}
                    </span>
                  </div>
                  <h3 className="font-bold text-lg mb-2">
                    {relatedProduct.name}
                  </h3>
                  <div className="flex justify-between items-center">
                    <span className="text-lg font-semibold text-[#d4a373]">
                      {relatedProduct.price}
                    </span>
                    <span className="text-sm text-[#d4a373]">
                      View Details →
                    </span>
                  </div>
                </div>
              </Link>)}
          </div>
        </div>
      </section>
    </div>;
}